import request from '@/utils/myRequest'

export function getNewsList(params) {
  return request({
    url: '/admin/xy/news/list',
    method: 'get',
    params
  })
}

export function getNewsDetail(params) {
  return request({
    url: '/admin/xy/news/detail',
    method: 'get',
    params
  })
}

export function delNews(params) {
  return request({
    url: '/admin/xy/news/del',
    method: 'get',
    params
  })
}

export function saveNews(data) {
  return request({
    url: '/admin/xy/news/save',
    method: 'post',
    data
  })
}

export function updateNews(data) {
  return request({
    url: '/admin/xy/news/update',
    method: 'post',
    data
  })
}
